home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Freeware / Miro 1.0 / Miro_Installer.exe / chrome / content / bugreport.js < prev    next >
Encoding:
JavaScript  |  2007-11-12  |  1.6 KB  |  45 lines

  1. /*
  2. # Miro - an RSS based video player application
  3. # Copyright (C) 2005-2007 Participatory Culture Foundation
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  18. */
  19.  
  20. function openBugReportWindow() {
  21.   var py = Components.classes["@participatoryculture.org/dtv/pybridge;1"].
  22.         getService(Components.interfaces.pcfIDTVPyBridge);
  23.   py.openBugTracker();
  24. }
  25.  
  26. function updateLabel() {
  27.   var elt = document.getElementById("log");
  28.   var textIn = window.arguments[0]["report"];
  29.   elt.setAttribute("value", textIn);
  30. }
  31.  
  32. function updateLabelStartupError() {
  33.   var py = Components.classes["@participatoryculture.org/dtv/pybridge;1"].
  34.         getService(Components.interfaces.pcfIDTVPyBridge);
  35.   var elt = document.getElementById("log");
  36.   elt.setAttribute("value", py.getStartupError());
  37. }
  38.  
  39. function copyLogToClipboard() {
  40.   var log = document.getElementById("log");
  41.   var clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
  42.       .getService(Components.interfaces.nsIClipboardHelper);
  43.   clipboard.copyString(log.value);
  44. }
  45.